.ONESHELL:
#+usage: cix构建脚本模板
#-param: lang=? //语言 eg:golang.v1
#img global setting
#imgRepo=docker.io
#imgTag=latest
#T=direct#build type direct:hostos  docker=container default
#imgName= option default moduleName

#ci global setting
ciType=golang.v1
ciGroup=cfxl
ciContext=.
#ciOutDir=.cix/build# option default .cix/build
#ciSources=cmd/main.go option default cmd/main.go
#ciBinName=flow#  option default moduleName
#ciConfigRoot=/etc/flow
#ciConfigs=config.yaml#auto create config file by env

#mk global setting

#self targets

build: #生成bfs文件
	@find ./v1/flow/template -name "*.cue" | while read line
	do
	  echo $$line
	  cuex dm gen -f $$line -l proto
	done
	@find ./v1/flow -name "*.cue" | while read line
	do
	  echo $$line
	  cuex dm gen -f $$line -l proto
	done

